package com.hotacorp.opencloud.common.resourcecommon.exception;

/**
 * 自定义OpenCloud异常
 * @author lwg
 *
 */
public class OpenCloudException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
    private Integer code = 500;
	public OpenCloudException(String message) {
		super(message);
	}

    public OpenCloudException(Integer code, String message) {
		super(message);
		this.code = code;
	}
	public OpenCloudException(Throwable cause) {
		super(cause);
	}
	public OpenCloudException(Integer code, Throwable cause) {
		super(cause);
		this.code = code;
	}
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}

    
}
